package com.domor.dao.project;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ProjectDao {

	List<Map<String,Object>> queryProject(Map<String, Object> params);
	List<Map<String,Object>> queryDemand(Map<String, Object> params);

	Map<String, Object> getById(int proId);
	int getByName(String name);
	
	int insertProject(Map<String, Object> project);
	int updateProject(Map<String, Object> project);
	int deleteProject(int proId);
	
	int insertDemand(Map<String, Object> params);
	int updateDemand(Map<String, Object> params);

	List<Map<String, Object>> queryCustomer(Map<String, Object> params);
	List<Map<String, Object>> queryContact(Map<String, Object> params);

}
